﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="no-store" />    
    <?php $themeUrl = Yii::app()->theme->baseUrl; ?>    
    <link rel="icon" type="image/png" id="favicon" href="<?php echo $themeUrl; ?>/images/favicon.ico"/>
    <link type="text/css" href="<?php echo $themeUrl; ?>/css/core.css" rel="stylesheet" media="all" />
    <link type="text/css" href="<?php echo $themeUrl; ?>/css/login.css" rel="stylesheet" media="screen" />
    <link type="text/css" href="<?php echo $themeUrl; ?>/css/animation.css" rel="stylesheet" media="screen" />
    <link type="text/css" href="<?php echo $themeUrl; ?>/css/tooltip.css" rel="stylesheet" media="screen" />
        
    <!--[if IE]>
        <link type="text/css" href="<?php echo $themeUrl; ?>/css/fixie.css" rel="stylesheet" />
    <![endif]-->    
    <!--[if IE 7]>
        <link type="text/css" href="<?php echo $themeUrl; ?>/css/fixie7.css" rel="stylesheet" />
    <![endif]-->    
    
    <?php        
        //cs()->registerScriptFile($themeUrl . '/js/jquery-1.7.2.min.js');
        cs()->registerScriptFile($themeUrl . '/js/LGCMS.js');        
        cs()->registerScriptFile($themeUrl . '/js/jquery.tooltip.js');        
    ?>
    
</head>
<body>
    <div id="wrapper">
        <div id="container">
            <div id="logo" class="bounceInDown animated"><img src="<?php echo $themeUrl; ?>/images/frame/logo.png" alt="" /></div>
            <div id="clogin-form" class="bounceIn animated">
                <div class="content">
                    <div class="header"><?php echo t('LBL_WELCOME','authorization');?></div>
                    <div class="form">
                    <?php $form=$this->beginWidget('CActiveForm', array(
                            'id'=>'login-form',
                            'enableClientValidation'=>true,
                            'clientOptions'=>array(
                                    'validateOnSubmit'=>true,
                            ),
                    )); ?>                            
                            <div class="box">                                
                                <?php echo $form->labelEx($model,'username'); ?>                                
                                <?php echo $form->textField($model,'username',array('class' => 'tbox')); ?>                                
                            </div>
                            <div class="box">
                                <?php echo $form->labelEx($model,'password'); ?>
                                <?php echo $form->passwordField($model,'password',array('class' => 'tbox')); ?>                                
                            </div>                            
                            <div class="box remember">
                                <?php echo $form->checkBox($model,'rememberMe'); ?>
                                <?php echo $form->label($model,'rememberMe'); ?>                      
                                <span class="box-link">
                                    
                                    <?php echo Html::linkPopup('lnkRegister', t('LBL_USER_CANNOT_ACCESS_ACCOUNT', 'authorization'), url('/authorization/forgotpassword'),
                                            t('LBL_USER_CANNOT_ACCESS_ACCOUNT', 'authorization'), t('LBL_USER_FORGOT_PASSWORD', 'authorization'), 410, 225); ?>                                   
                                </span>
                            </div>
                            <div class="box-button">                                
                                <button class="button-login" type="submit"><span><?php echo t('LBL_BUTTON_LOGIN','authorization')?></span></button>                                                                
                            </div>
                            <div class="box-error">                                                                
                                <?php echo $form->error($model,'errorMessage'); ?>
                            </div>
                    <?php $this->endWidget(); ?>
                    <?php $this->widget('ext.EUpdateDialog.EUpdateDialog', array('dialogOptions' => array('resizable' => false))); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>    
</body>
</html>